package com.showsu.editor.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: William
 * @Description: 会员能力类型
 * @Date: Created in 17:46 2025/9/17
 * @Modified By:
 */
@Getter
@AllArgsConstructor
public enum UserExpPackageTypeEnum {
    XHS_AWEME_INCLUDE_QUERY(0, "xhs笔记收录查询"),
    XHS_AWEME_RANK_QUERY(1, "xhs笔记排名查询"),
    ;

    /**
     * 编码
     */
    final Integer code;

    /**
     * 描述
     */
    final String msg;

    public static UserExpPackageTypeEnum getByCode(Integer type) {
        for(UserExpPackageTypeEnum typeEnum : UserExpPackageTypeEnum.values()) {
            if (typeEnum.getCode().intValue() == type){
                return typeEnum;
            }
        }
        return null;
    }
}
